from api.api import ElasticSearchQueryResource
from flask_restful import reqparse


class Class1WordCloudMatchResource(ElasticSearchQueryResource):
    pass


class Class1WordCloudResource(ElasticSearchQueryResource):
    pass


class Class2WordCloudMatchResource(ElasticSearchQueryResource):
    pass


class Class2WordCloudResource(ElasticSearchQueryResource):
    pass


class1_match_parser = reqparse.RequestParser()
class1_match_parser.add_argument('youka_id', type=str, location='json')
class1_match_parser.add_argument('class1_name', type=str, location='json')
class1_match_parser.add_argument('class1_id', type=str, location='json')
class1_match_parser.add_argument('keywords',  type=str, location='json')

class2_match_parser = reqparse.RequestParser()
class2_match_parser.add_argument('youka_id', type=str, location='json')
class2_match_parser.add_argument('class2_name', type=str, location='json')
class2_match_parser.add_argument('class2_id', type=str, location='json')
class2_match_parser.add_argument('class1_name', type=str, location='json')
class2_match_parser.add_argument('class1_id', type=str, location='json')
class2_match_parser.add_argument('keywords',  type=str, location='json')


id_parser = reqparse.RequestParser()
id_parser.add_argument('youka_id', type=str, location='json')
id_parser.add_argument('id', type=str, location='args')
